Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependency conflict #790

Merged
merged 1 commit into from
Jul 30, 2023
Merged

Fix dependency conflict #790

merged 1 commit into from
Jul 30, 2023

Conversation

elliotwutingfeng
Copy link
Contributor

On a fresh virtualenv, running pip install -r requirements.txt gives the following error

ERROR: Cannot install -r requirements.txt (line 15), -r requirements.txt (line 20), -r requirements.txt (line 4), -r requirements.txt (line 5), -r requirements.txt (line 6) and numpy==1.23.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested numpy==1.23.5
    opencv-python 4.8.0.74 depends on numpy>=1.21.2; python_version >= "3.10"
    opencv-python 4.8.0.74 depends on numpy>=1.23.5; python_version >= "3.11"
    opencv-python 4.8.0.74 depends on numpy>=1.17.0; python_version >= "3.7"
    opencv-python 4.8.0.74 depends on numpy>=1.17.3; python_version >= "3.8"
    opencv-python 4.8.0.74 depends on numpy>=1.19.3; python_version >= "3.9"
    onnx 1.14.0 depends on numpy
    insightface 0.7.3 depends on numpy
    torchvision 0.15.2+cu118 depends on numpy
    onnxruntime-gpu 1.15.1 depends on numpy>=1.24.2
  • Latest compatible numpy version is 1.24.3
  • numpy 1.25.1 is not compatible (tensorflow 2.13.0 depends on numpy<=1.24.3 and >=1.22)

@henryruhs henryruhs changed the base branch from main to next July 30, 2023 10:00
@henryruhs henryruhs deleted the branch s0md3v:next July 30, 2023 10:01
@henryruhs henryruhs closed this Jul 30, 2023
@henryruhs henryruhs reopened this Jul 30, 2023
@henryruhs henryruhs merged commit eb2440c into s0md3v:next Jul 30, 2023
4 checks passed
@elliotwutingfeng elliotwutingfeng deleted the numpy branch July 30, 2023 10:59
henryruhs added a commit that referenced this pull request Aug 3, 2023
* Fix dependency conflict (#790)

* Remove (direct) torch and torchvision dependencies

* Change version to next

* Multi OS in CI (#808)

* Run CI on multi OS

* Run CI on multi OS

* Run CI on multi OS

* Run CI on multi OS

* Run CI on multi OS

* Bump version

---------

Co-authored-by: Wu Tingfeng <wu.tingfeng@u.nus.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants